package schemas

import "github.com/gin-gonic/gin"

type CreateTeam struct {
	ID        uint   `json:"id" default:"0"`
	Name      string `json:"name" form:"name" binding:"required" comment:"团队名称"`
	Introduce string `json:"introduce" form:"introduce" binding:"required" comment:"团队介绍"`
	Members   []uint `json:"members" form:"members" binding:"required" comment:"团队成员"`
}

func (s *CreateTeam) BindValidParam(ctx *gin.Context) error {
	return DefaultGetValidParams(ctx, s)
}

type QueryTeam struct {
	Page     int `json:"page" form:"page" binding:"required" comment:"页码"`
	PageSize int `json:"pageSize" form:"pageSize" binding:"required" comment:"每页数量"`
}

func (s *QueryTeam) BindValidParam(ctx *gin.Context) error {
	return DefaultGetValidParams(ctx, s)
}
